package main
import (
   "fmt"
   "math/rand"  //伪随机数，之后生成的都与第一次相同
   "time"
)
   
func main() {
	s := fmt.Sprintf("%08v", rand.New(rand.NewSource(time.Now().UnixNano())).Int63n(100000000))  //真正随机数
   fmt.Println(s)
   println("-----------------")
   abc := RandInt64(44444362000000,-100366344765856546465)
   println(abc)
}

func RandInt64(min, max int64) int64 {
	if min >= max || min == 0 || max == 0 {
		return max
	}
	return rand.Int63n(max-min) + min
}

